<extend name="Public/base"/>
<block name="body">
<div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
            <h5>{$meta_title}</h5>
             <div class="buttons">
              <a class="btn btn-mini"  href="{:U('Admin/User/Add')}">新增用户</a>          
             </div>
           </div>
          <div class="widget-content ">
            <table class="table table-bordered table-striped with-check">
                <thead>
                <tr>
                    <td>ID</td>
                    <td>用户名</td>
                    <td>注册时间</td>
                    <td>注册IP</td>
                    <td>所属角色</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
              </thead>
              <tbody>
                 <volist name="list" id="vo">
                    <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.username}</td>
                    <td>{$vo.last_login_time|date='Y-m-d',###}</td>
                    <td>{$vo.last_login_ip}</td>
                    <td>
                    <volist name="vo.role" id="v">
                       {$v.name}({$v.remark})
                    </volist>
                    </td>
                    <td><if condition="$vo['status'] eq 1">开启<else/>关闭</if></td>
                    <td><a href="{:U('Edit',array('id'=>$vo['id']))}">编辑</a> | <a href="{:U('Del',array('id'=>$vo['id']))}">删除</a></td>
                    </tr>
                 </volist>
              </tbody>
            </table>
          </div>
        </div>
</block>












